<?php

/**
 * @package Framework03
 * @author Walter Tamboer
 */

/**
 * Used to render XML pages
 */
class XmlRenderDevice extends RenderDevice
{
	/**
	 * @var DOMDocument The XML DOM document.
	 */
	private $Xml;
	/**
	 * Initializes a new instance of this class.
	 * @param DOMDocument $Xml The DOMDocument to use.
	 */
	public function __construct(DOMDocument $Xml)
	{
		parent::__construct(array());

		$this->Xml = $Xml;
	}
	/**
	 * Gets the rendered content.
	 * @return string Returns a string with the parsed content.
	 */
	public function Render()
	{
		echo $this->Xml->saveXML();
	}
}

?>